<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <script th:src="@{/3party/jquery-2.1.1.min.js}"></script>
    <title>Title</title>
</head>
<body>


<form method="post" th:action="@{/food/add}">

    <div>
        食品名称：<input name="foodname" placeholder="请输入食品名称" type="text"/>
    </div>
    <div>
        食品图片：<input name="foodcover" placeholder="请输入图片地址" type="password" />
    </div>

    <div>
        食品分类：<select name="foodclassid" >
                    <option>请选择</option>
                    <option
                            th:each="c:${foodClass}"
                            th:value="${c.id}"
                            th:text="${c.foodclass}"></option>
                </select>
    </div>

    <div>
        食品价格：<input name="foodprice" placeholder="食品价格" type="text" />
    </div>

    <div>
        食品折扣：<input name="fooddiscount" placeholder="食品折扣" type="text" />
    </div>


    <button type="submit" th:text="新增"/>

</form>



</body>
</html>